<template>
  <span class="iconfont" :class="`icon-${icon}`"></span>
</template>

<script>
import { computed } from 'vue';
export default {
  name: 'FontIcon',
  props: {
    name: {
      type: String,
      default: ''
    }
  },
  setup(props) {
    const icon = computed(() => props.name);

    return {
      icon
    };
  }
};
</script>

<style scoped></style>
